<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>


<div id="processImageDiv"
	style="position: relative;background:url('workflow/processDefinition/processImage/${processDefinition.id }')  no-repeat;width:${shapeMeta.width}px;height:${shapeMeta.height}px;">
	${shapeMeta.xml}</div>
<script type="text/javascript">
	$("#processImageDiv div.flowNode").click(function() {
		var $e = $(this);
		var type = $e.attr("type");
		var nodeId = $e.prop("id");
		var name = $e.prop("title");
		var processDefinitionId = "${processDefinition.id }";

		var url = "bpm/nodeSetting/edit?bpmProcessSettingId=" + $("#id").val() + "&nodeId=" + nodeId + "&name=" + name + "&type=" + type + "&processDefinitionId=" + processDefinitionId;

		isperp.openDialog({
			title : name + "-设置",
			contentUrl : url
		});

	});
</script>